﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO.Ports;
using System.Text;

namespace DZRemoteController
{
	public class HtmlControlConfigSection : ConfigurationSection
	{
		[ConfigurationProperty("form")]
		public FormElement Form
		{
			get { return ((FormElement)(base["form"])); }
		}

		[ConfigurationProperty("textbox")]
		public TextBoxElement TextBox	
		{
			get { return ((TextBoxElement)(base["textbox"])); }
		}
	}

	public class FormElement : ConfigurationElement
	{
		[ConfigurationProperty("name", IsRequired = true)]
		public string Name
		{
			get { return ((string)(base["name"])); }
			set { base["name"] = value; }
		}

		[ConfigurationProperty("orderNo", IsRequired = true)]
		public int OrderNo
		{
			get { return ((int)(base["orderNo"])); }
			set { base["orderNo"] = value; }
		}
	}


	public class TextBoxElement : ConfigurationElement
	{
		[ConfigurationProperty("name", IsRequired = true)]
		public string Name
		{
			get { return ((string)(base["name"])); }
			set { base["name"] = value; }
		}

		[ConfigurationProperty("orderNo", IsRequired = true)]
		public int OrderNo
		{
			get { return ((int)(base["orderNo"])); }
			set { base["orderNo"] = value; }
		}
	}

}
